#!/usr/bin/bash

data_split=$1
output_folder=$2

cd $HOME/
source .bash_profile
conda activate lxb39
cd $HOME/projects/LLaVA

GT_ANNS_FILE=$DATASETS/coco_karpathy_split/annotations/coco_karpathy_${data_split}_gt.json
CAPTION_RESULTS_FILE=$OUTPUTS/LLaVA/evaluations/${output_folder}/caption_results_file.json

echo "Evaluation the performance of multi-modal model on the ${data_split} split of COCO karpathy split"
python -m llava.eval.eval_coco_caption \
    --gt-anns-file $GT_ANNS_FILE \
    --caption-results-file $CAPTION_RESULTS_FILE
